home *** CD-ROM | disk | FTP | other *** search
- #if !defined(__mouse_h)
- #define __mouse_h
- typedef struct { int x; int y;} mouse_coords;
- class mouse_class {
- public:
- mouse_class();
- ~mouse_class();
- void mousedriver(unsigned int*m1,unsigned int*m2,unsigned int*m3,
- unsigned int*m4,unsigned int*m5);
- int ready(); //returns t/f
- int inbox(unsigned int x1,unsigned int y1,unsigned int x2,unsigned int y2); //returns t/f
- void show();
- void hide();
- void place(unsigned int xpos,unsigned int ypos);
- void status(int *leftbut, int *rightbut,
- unsigned int *xpos,unsigned int *ypos);
- void buttonrelease(unsigned int * button,unsigned int *buttonstatus,unsigned int * releases,
- unsigned int *xpos,unsigned int *ypos);
- void buttons(unsigned int *button,unsigned int *buttonstatus,unsigned int *presses,
- unsigned int *xpos,unsigned int *ypos);
- void setbounds(unsigned int xmin,unsigned int xmax,unsigned int ymin,unsigned int ymax);
- void mickeys(unsigned int * xmickeys,unsigned int * ymickeys);
- void speed(unsigned int xspeed,unsigned int yspeed);
- void page(unsigned int pagesel);
- int mreset();
- int rightbuttondown();
- int leftbuttondown();
- unsigned int posy();
- unsigned int posx();
- int vposx();
- int vposy();
- void get_press_coords();
- int leftbuttonpressed(); //detects if left button has been pressed or not
- int leftx; //holds x position at last left button click
- int lefty; //holds y position at last left button click
- };
- #endif
-